/*
 * File:   mainwindow.cpp
 * Author: longtran
 *
 * Created on February 4, 2011, 4:40 PM
 */
#include "mainwindow.h"

#include <QtGui/QLineEdit>

#include "../projector/projectortablemodel.h"


namespace UISource
{
MainWindow::MainWindow() {
    widget.setupUi(this);

    // add the filter to the toolbar
    QLineEdit* filter = new QLineEdit();
    filter->setPlaceholderText( "Filter" );
    widget.toolBar->addWidget(filter);

    widget.tableView->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
    widget.tableView->setModel(Projector::ProjectorTableModel::GetInstance());
}

MainWindow::~MainWindow()
{

}
}